﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="ChiTietSanPham.aspx.cs" Inherits="GUI.ChiTietSanPham" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--    <script src="Home/js/jquery-1.6.1.min.js" type="text/javascript"></script>
    <script src="Home/js/jquery.prettyPhoto.js" type="text/javascript"></script>--%>
    <%--<link href="Home/css/table.css" rel="stylesheet" type="text/css" />--%>
    <div class="border_content">
        <!-- slide -->
        <asp:DataList ID="DatalistChiTietSanPham" runat="server" CellPadding="1" RepeatColumns="1"
            Width="100%" OnItemCommand="DatalistChiTietSanPham_ItemCommand">
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            <ItemStyle BackColor="White" />
            <ItemTemplate>
                <div class="title">
                    <a id="HyperLink1" href="Default.aspx">Trang chủ</a>| <a id="HyperLink2" href="SanPham.aspx">
                        Sản phẩm</a>| <a id="HyperLink3" href="ChiTietSanPham.aspx?MaSanPham=<%# Eval("MaSanPham") %>">
                            <%# Eval("TenSanPham") %></a></div>
                <div class="bg-1">
                    <div class="bg-2">
                        <table class="bg-4" cellpadding="5" cellspacing="5" width="566px">
                            <tbody>
                                <tr>
                                    <td rowspan="6" style="padding: 0pt 15px; width: 175px; vertical-align: top;">
                                        <!--obout ImageZoom version 1.2.1.0 - www.obout.com -->
                                        <img id="image_sanpham" class=" simpleZoomOut" src="<%# "Images\\" + LoadHinhAnh(Eval("MaSanPham")) %>"
                                            style="max-width: 177px; border: 1px solid rgb(204, 204, 204); padding: 2px;"
                                            alt='' />
                                    </td>
                                    <td colspan="2" style="font-size: 16px; font-weight: bold; color: rgb(255, 102, 0);
                                        padding-right: 15px;">
                                        <%# Eval("TenSanPham") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <strong>Model:</strong>
                                    </td>
                                    <td class="left">
                                        <%# LoadNhaSanXuat(Eval("MaNhaSanXuat")) %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <strong>Giá:</strong>
                                    </td>
                                    <td style="font-size: 16px; font-weight: bold;">
                                        <span style="color: #488308;">
                                            <%# Eval("GiaBan", "{0:0,0 VNĐ}")%></span>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <strong>Tình trạng:</strong>
                                    </td>
                                    <td class="left">
                                        <%# LoadTinhTrang(Eval("TinhTrang")) %>
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                        <strong>Bảo hành:</strong>
                                    </td>
                                    <td class="left">
                                        <%# Eval("BaoHanh") %>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" style="vertical-align: middle;">
                                        <%--                                                <div style="float: left; margin-right: 10px;">
                                                    <strong>Số lượng :</strong>&nbsp;&nbsp;
                                                    <asp:TextBox ID="txtSoLuong" Text="1" ValidationGroup="soluong" Style="text-align: center;
                                                        width: 30px;" CssClass="inputbox" runat="server" />
                                                    <asp:RequiredFieldValidator ControlToValidate="txtSoLuong" ValidationGroup="soluong"
                                                        ID="RequiredSoLuong" runat="server" ForeColor="Red" ErrorMessage="*" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </div>--%>
                                        <div style="float: left;">
                                            <%--<a href="GioHangConTrol.aspx?action=them&masp=<%# Eval("MaSanPham") %>" class="btndathang">
                                                ĐẶT HÀNG</a>--%>
                                            <asp:LinkButton CssClass="btndathang" ID="btnDatHang" CommandArgument='<%# Eval("MaSanPham") %>'
                                                CommandName='them' runat="server" Height="21px" Width="78px" ToolTip="Đặt hàng">ĐẶT HÀNG</asp:LinkButton>
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <strong>Thông số kỹ thuật: </strong>
                                        <%# Eval("ThongSoKyThuat") %>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </ItemTemplate>
            <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
        </asp:DataList>
        <!-- end slide -->
        <div class="clear">
        </div>
    </div>
</asp:Content>
